clear
echo Processing tweets...
bin/hadoop fs -rmr /output
bin/hadoop fs -rmr /outputCounter
bin/hadoop fs -rmr /inputSorter
bin/hadoop fs -mkdir /inputSorter
bin/hadoop jar wordcount.jar br.edu.ufcg.ccc.wordcount.WordCount /input /outputCounter
bin/hadoop fs -mv /outputCounter/part* /inputSorter/
bin/hadoop jar wordcount.jar br.edu.ufcg.ccc.wordcount.ResultSorter /inputSorter /output
echo Finished processing tweets.
